package com.qtenv.datasync.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qtenv.datasync.service.entity.TerminalHistoryData;

import java.util.List;

/**
 * <p>
 * 历史数据（大表） 服务类
 * </p>
 *
 * @author CBL
 * @since 2022-06-22
 */
public interface TerminalHistoryDataService extends IService<TerminalHistoryData> {
    List<TerminalHistoryData> findRecords(String startTime, String endTime);

    void saveToMiddle(List<TerminalHistoryData> dataList);

    List<TerminalHistoryData> getInstantDataList(String tenantId, String areaId, String startDate, String endDate);

    List<TerminalHistoryData> getHistoryDataList(String tenantId, String terminalId, String startDate, String endDate);

    List<TerminalHistoryData> getSeniorMinNightFlow(String tenantId, String areaId);
}
